let APIV3 = '';

// 重构API
// 线下地址
// APIV3 = 'http://192.168.231.239:8000';
// 正式地址(生产)
APIV3 = 'http://ajax.winnerwly.top';

// 生产环境时api固定为线上url
if (process.env.NODE_ENV !== 'development') {
  APIV3 = 'http://wmsapi.mingz-tech.com';
}

export const login = {
  // param= username, password, imageCode, uuid
  // method=post
  account: `${APIV3}/Ng/Index/login`,
  // param=uuid, method=get
  getVerifyImage: `${APIV3}/Ng/Index/verifyCode`,
};

export const user = {
  // param=token, method=post
  getUserInfoByToken: `${APIV3}/api/common/getUserInfoByToken`,
};

// 出库查询
export const getout = {
  list: `${APIV3}/Ng/User/get`,
  edit: `${APIV3}/api/cargo/edit`,
};

export const HTTP_URL = APIV3;
